package com.project.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.project.auth.mapper.SysMenuMapper;
import com.project.auth.model.system.SysMenu;
import com.project.auth.vo.system.AssginMenuVo;
import com.project.auth.vo.system.RouterVo;

import java.util.List;

/**
 * @Description
 * @Author : XIAOMING
 * @create 2023/4/7 11:29
 */
public interface SysMenuService extends IService<SysMenu> {
    //菜单列表接口
    List<SysMenu> findNodes();
    //删除菜单接口
    void removeMenuById(Long id);

    List<SysMenu> findMenuByRoleId(Long roleId);

    //角色分配菜单
    void doAssign(AssginMenuVo assignMenuVo);

    //查询数据库动态构建路由结构
    List<RouterVo> findUserMenuListByUserId(Long userId);

    //获取用户可以操作的按钮列表
    List<String> findUserPermsByUserId(Long userId);
}
